 
<script setup>
import {ref} from 'vue'


//处理跳转
const handleNavigate=(url)=>{
	uni.navigateTo({
		url
	})
}
 

 
</script>
<template>
	<view class="title">
		<image src="/static/my.png"></image>
		<view class="text">个人中心</view>
	</view>
  <view class="my-container">
    <!-- 用户信息卡片 -->
    <view class="user-card">
      <image class="avatar" src="/static/default-avatar.png"></image> 
      <view class="user-info">
        <text class="username">用户名</text>
        <text class="user-id">ID: 123456</text>
      </view>
    </view>
    
    <!-- 功能列表 -->
    <view class="menu-list">
      <view class="menu-item" @tap="handleNavigate('/pages/setting/setting')">
         <uni-icons class="menu-icon" color="black" type="gear"size="18"></uni-icons>
        <text>设置</text>
         <uni-icons class="arrow" color="black" type="right"size="18"></uni-icons>
      </view>
      
      <view class="menu-item" @tap="handleNavigate('/pages/feedback/feedback')">
        <uni-icons class="menu-icon" color="black" type="chat"size="18"></uni-icons>
        <text>意见反馈</text>
        <uni-icons class="arrow" color="black" type="right"size="18"></uni-icons>
      </view>
      
      <view class="menu-item" @tap="handleNavigate('/pages/aboutUs/aboutUs')">
         <uni-icons class="menu-icon" color="black" type="eye"size="18"></uni-icons>
        <text>关于我们</text>
       <uni-icons class="arrow" color="black" type="right"size="18"></uni-icons>
      </view>
    </view>
    
   
  </view>
</template>

 
<style lang="scss" scoped>
.title {
	margin: 40rpx;
			display: flex;
			align-items: center;

			image {
				width: 50rpx;
				height: 50rpx;

			}

			.text {
				margin-left: 15rpx;
				color: rgb(106, 144, 201);
				font-weight: 600;
				font-size: 32rpx;
				letter-spacing: 1rpx;
			}
		}	
.my-container {
  width: 90%;
  padding: 20rpx;
  margin: 0 auto;
  border: 1px solid #eee;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
  .user-card {
    display: flex;
    align-items: center;
    padding: 30rpx;
    border-radius: 15rpx;
    margin-bottom: 40rpx;
    border: 1px solid #eee;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
    .avatar {
      width: 100rpx;
      height: 100rpx;
      border-radius: 50%;
      margin-right: 30rpx;
    }
    
    .user-info {
      display: flex;
      flex-direction: column;
      
      .username {
        font-size: 30rpx;
        font-weight: bold;
        margin-bottom: 10rpx;
        color: #333;
      }
      
      .user-id {
        font-size: 24rpx;
        color: #666;
      }
    }
  }
  
  .menu-list {
    background-color: #fff;
    border-radius: 15rpx;
    padding: 0 30rpx;
    
    .menu-item {
      display: flex;
      align-items: center;
      padding: 30rpx 0;
      border-bottom: 1rpx solid #eee;
      position: relative;
      
      &:last-child {
        border-bottom: none;
      }
      
      .menu-icon {
        width: 40rpx;
        height: 40rpx;
        margin-right: 20rpx;
      }
      
      .arrow {
        width: 30rpx;
        height: 30rpx;
        position: absolute;
        right: 0;
      }
    }
  }
  
  .logout-btn {
    margin-top: 60rpx;
    background-color: rgb(105, 145, 196);
    color: white;
    text-align: center;
    padding: 25rpx;
    border-radius: 50rpx;
    font-size: 30rpx;
  }
}
</style>